#include <stdio.h>
#include <math.h>

int double_cmp(int precision, double a, double b)
{
    double delta = pow(10.0, -precision);
    if (a - b > delta)
        return 1;
    else if (a - b < -delta)
        return -1;
    else
        return 0;
}

int main()
{
    int p;
    double a, b;
    while (scanf("%d%lf%lf", &p, &a, &b) == 3)
    {
        printf("%d\n", double_cmp(p, a, b));
    }
    return 0;
}
